home *** CD-ROM | disk | FTP | other *** search
/ Power Hacker 2003 / Power_Hacker_2003.iso / Exploit and vulnerability / w00w00 / sectools / ngrep / ngrep.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-02-01  |  696 b   |  30 lines

  1. /*
  2.  * $Id: ngrep.h,v 1.13 2000/02/01 12:28:08 jpr5 Exp $
  3.  *
  4.  */
  5.  
  6. /* for PPPHDR_SIZE, stevens says 24, but on linux (at least) it's 4 */
  7. /*   who knows if this will break anything */
  8. #define ETHHDR_SIZE 14 
  9. #define PPPHDR_SIZE 4 
  10. #define SLIPHDR_SIZE 16
  11. #define RAWHDR_SIZE 0
  12. #define LOOPHDR_SIZE 4 
  13. #define FDDIHDR_SIZE 21
  14.  
  15. #ifndef IP_OFFMASK
  16. #define IP_OFFMASK 0x1fff
  17. #endif
  18.  
  19. #define WORD_REGEX "((^%s\\W)|(\\W%s$)|(\\W%s\\W))"
  20. #define IP_ONLY "ip and ( %s)"
  21.  
  22. char *get_filter(char **);
  23. void process(u_char *, struct pcap_pkthdr*, u_char *);
  24. int re_match_func(char *, int); 
  25. int blank_match_func(char *, int); 
  26. void dump(char *, int); 
  27. void clean_exit(int);
  28. void usage(int);
  29. void version(void);
  30.